<?php
namespace app\shop\validate\company;
use think\Validate;
class Team extends Validate
{
    protected $rule = [
        'id' => 'require',
        'title' => 'require',
        'class_id' => 'require',
        'content' => 'require',
    ];
    protected $message = [
        'id.require' => '参数错误',
        'title.require' => '请输入名称/标题',
        'class_id.require' => '请选择分类',
        'content.require' => '请输入内容'
    ];
    protected $scene = [
        'addClass' => ['title'],
        'editClass' => ['id', 'title'],
        'info' => ['id'],
        'add' => ['class_id', 'content', 'title'],
        'edit' => ['id', 'class_id', 'content', 'title'],
    ];
}